import {Routes} from 'Shared/utils/routeManager';
import {formatMessage} from './intl';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.column.operation.query',
            defaultMessage: '列表'
        })
    },
    add: {
        url: '/add',
        title: formatMessage({
            id: 'routes.add',
            defaultMessage: '新增'
        }),
        format: '/add'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.update',
            defaultMessage: '编辑'
        }),
        format: '/{0}/update'
    },
    maintain: {
        url: '/:id/maintain',
        title: formatMessage({
            id: 'routes.maintain',
            defaultMessage: '关系维护'
        }),
        format: '/{0}/maintain'
    }
});

export default routes;
